home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 2
/
Amiga Tools 2.iso
/
tex
/
macros
/
source
/
contrib
/
supported
/
xypic
/
src
/
xy2cell.doc
/
node16_mn.html
< prev
next >
Wrap
Text File
|
1995-03-15
|
12KB
|
454 lines
<H2><A ID="SECTION00006000000000000000">
2-cells in general -pictures</A>
</H2>
??=[standard]
Two-cells can also be set directly within any -picture, without the
matrix feature, using either || or ||.
<P>
2
(
=@
@<#554#><#554#>
@<#555#><#555#>
@<#556#><#556#>
@<#557#><#557#>
<P>
@#1#<#1016#>@@twocelll<#558#>#1<#558#><#1016#>
@twocelll#1#2<#1113#><tex2html_comment_mark>251
<#1017#>twocelll@@@#1<#559#>#2<#559#><#1017#><#1113#>
<P>
@#1#<#1018#>@@uppertwocelll<#560#>#1<#560#><#1018#>
@uppertwocelll#1#2<#1114#><tex2html_comment_mark>252
<#1019#>twocelll@@@#1<#561#>#2<#561#><#1019#><#1114#>
<P>
@#1#<#1020#>@@lowertwocelll<#562#>#1<#562#><#1020#>
@lowertwocelll#1#2<#1115#><tex2html_comment_mark>253
<#1021#>twocelll@@@#1<#563#>#2<#563#><#1021#><#1115#>
<P>
@#1#<#1022#>@@compositemapp<#564#>#1<#564#><#1022#>
@compositemapp#1#2<#1116#><tex2html_comment_mark>254
<#1023#>twocelll@@@#1<#565#>#2<#565#><#1023#><#1116#>
@twocelll@<#1024#><tex2html_comment_mark>256
@
@
=@path
<#1024#>
<P>
@twocell#1<#1025#>@<#569#>twocell@@<#569#>@@ [#1]<#1025#>
@uppertwocell#1<#1026#>@<#570#>twocell@@<#570#>@@ [#1]<#1026#>
@lowertwocell#1<#1027#>@<#571#>twocell@@<#571#>@@ [#1]<#1027#>
@compositemap#1<#1028#>@<#572#>twocell@@<#572#>@@ [#1]<#1028#>
)
<P>
3
<BR>
<tex2html_image_mark>#code573#
<BR>
<P>
<P><tex2html_verbatim_mark>#math460#</P><DIV ALIGN="CENTER">
<B><tex2html_image_mark>#tex2html_wrap_indisplay1772#</B>
</DIV><P></P>
<P><P><BR>
<P>
<BR>
<tex2html_image_mark>#code589#
<BR>
<P>
The code shown is a compact way to place a chain
of 2-cells within a picture.
It illustrates a standard technique for using
|| to find a ;SPMlt;pos;SPMgt; to be used for part of
a picture, then subsequently reuse it.
Also it is possible to use || or ;SPMlt;decor;SPMgt;s
to specify the 2-cells, giving the same picture.
<P>
<P>
The || variant is usually preferable
as this maintains the size of the object at <B><I>c</I></B>,
while the || variant leaves
a rectangular object having <B><I>p</I></B> and <B><I>c</I></B> on opposite sides.
<P>
2
This is used outside of diagrams.
<P>
(
@twocell@#1<#1117#>[@[<#1036#>@=<#600#>#1<#600#>@@twocell@<#1036#><tex2html_comment_mark>267
@<#1037#>#1<#601#><#601#><#1037#>
@
@
=@path
@ <#1117#>
)
<P>
This hack is necessary, since |@[##1]<#605#>#1##1<#605#>| will strip braces.
<P>
(
@@twocell@<#1118#>@##1]<#1038#>@<#606#>##1<#606#><#1038#><tex2html_comment_mark>270
@##1]<#607#>@##1<#607#>@ <#1118#>
)
<P>
2
:
These are supposed to allow |.̇.twocell<#608#>...<#608#>| to work.
At present it seems to be impossible to do this.
<P>
(
)
<P>
...since the contents of |<#609#>..<#609#>| is variable.
<P>
2
Finish off the box, set up the object size,
establish the |@@ | and |@@ | methods.
<P>
(
@@DONE<#1039#><tex2html_comment_mark>285
@
@=@-
@;SPMgt;@ =@ =@
=-@ =@
@ii=@ii-
@ii;SPMgt;@ =@ii =@
=@ii =@
@h<#615#>--@ <#615#><tex2html_comment_mark>286
@;SPMlt;@ @@ne @=@
@ii;SPMgt;@ @=@ii @=@
@=@ @=-@ii
=<#616#><#616#>@false @false
<#1039#><tex2html_comment_mark>291
)
<P>
modified |@@ | and |@@ |
<P>
(
@@Twocell<#619#>@ <#619#>
<P>
@@Twocell<#1040#>@h<#620#>@ <#620#><tex2html_comment_mark>292
@=@ @=@ @=@ @ <#1040#>
)
<P>
2
|@@| is the main switching engine, taking 9 parameters determining
which pieces to set and where to position them. This includes
curvature of the squines, whether to draw two squines
or only one, or to use straight lines,
whether to have a central Arrow and its orientation,
contants of labels and their positions.
<P>
The current p and c are the extents of the connection
these are stored as |;SPMquot;@p;SPMquot;| and |;SPMquot;@c;SPMquot;| for repeated use;
<P>
<BR>
<tex2html_image_mark>#defs1621#
<BR>
<P>
The following tokens may appear as parameters in |#9|:
|!|, |^|, |_|, |=|, |A|, |V|, |H|
<P>
(
mod@
@
<P>
@@@#1#2#3#4#5#6#7#8#9!!!<#1126#><tex2html_comment_mark>294
@<#627#>#9<#627#><tex2html_comment_mark>295
#9!#9A#9V#9H#5/#5b#5B#5@
@#9
@<#639#><#639#>@ @
@ @<#642#>@c<#642#>@@<#643#>@p<#643#>@
@<#644#>@c<#644#>@@ @@<#645#>.5<#645#><tex2html_comment_mark>302
@<#646#>@m<#646#>@<#647#>@m1<#647#>@<#648#>@m2<#648#><tex2html_comment_mark>303
#5t
@<#649#>@@<#649#><tex2html_comment_mark>305
@@ @ @
@<#650#>#1<#650#>@ @=@@=#1@
@=@ @<#1041#>@i<#651#>@<#651#>@<#1041#>
@<#1042#>@i<#652#>#1@<#652#>@<#1042#>@
@ @ @@ @<#653#>+<#653#><#654#><#654#>@<#655#>@m1<#655#><tex2html_comment_mark>306
@<#656#>#1<#656#>@ @<#657#>@@<#657#>@<#1043#>@<#658#><#658#><#659#>-<#659#><#1043#>
@<#660#>#1<#660#>@ @=@@=#1@
@=@ @<#661#>@@<#661#><tex2html_comment_mark>307
@@ @@
@i<#662#>@<#662#>@@ @ @<#663#>@m1<#663#><tex2html_comment_mark>308
@<#664#>@p<#664#>@@<#665#>@c<#665#><tex2html_comment_mark>309
@<#666#>#1<#666#>@ @<#667#>@@<#667#>@<#1044#>@<#668#><#668#><#669#>-<#669#><#1044#>
@<#1119#>@@
@@ @ @
@i<#670#>#1@<#670#>@@ @
@<#671#>@m1<#671#>@<#672#>@p<#672#>@@<#673#>@c<#673#><tex2html_comment_mark>310
@ @<#1045#>@<#675#>;SPMquot;@m1;SPMquot;<#675#><#1045#><tex2html_comment_mark>312
@####1<#1046#>@<#676#>####1<#676#><#1046#>@<#1047#><tex2html_comment_mark>313
@<#677#>@ ;SPMquot;@m1;SPMquot;<#677#><#1047#><tex2html_comment_mark>314
@ <#1119#><tex2html_comment_mark>315
@
@<#678#>#1<#678#>@
mod@ @
@@ @@
#5t
@ @
@
@@@ @ @
@ @<#1050#>@<#682#><#682#><#683#>|<#683#><#1050#><tex2html_comment_mark>320
@##1##<#1051#>@<#684#>##1<#684#><#1051#><tex2html_comment_mark>321
@<#1052#>@@ <#685#><#685#><#1052#><tex2html_comment_mark>322
@
@<#686#>#6<#686#>@ @<#687#><#687#>
@<#1053#><#688#><#688#><#1053#>@ @@<#689#><#689#>
@#3@<#690#><#690#>
@<#1054#>@@ @@
@@<#691#>.5<#691#>@ @
@@
@@ @<#692#>#1<#692#>@ @@@=#1@
@;SPMlt;@ @ @
@ @
@i<#693#>#3@<#693#>@@ @
@<#694#>#6<#694#><#1054#><tex2html_comment_mark>324
@
@<#695#>#1<#695#>@
#5b<tex2html_comment_mark>327
@ <#696#>@ <#696#>@@ @
@@<#697#>0<#697#>@ @
@ @<#1055#><#699#>;SPMgt;<#699#><#1055#><tex2html_comment_mark>329
@ @ @<#700#><#700#><#701#>;SPMlt;<#701#><tex2html_comment_mark>330
@ @##1##<#1056#>@<#702#>##1<#702#><#1056#><tex2html_comment_mark>331
@@ <#703#><#703#>@
@##1##<#1057#>@<#704#>##1<#704#><#1057#>@@ <#705#><#705#><tex2html_comment_mark>332
#5@<tex2html_comment_mark>333
<tex2html_comment_mark>334
@@ @@ @
@@<#706#>1<#706#>@ @
@ @<#708#><#708#><#709#>;SPMgt;<#709#><tex2html_comment_mark>336
@##1##<#1058#>@<#710#>##1<#710#><#1058#>@@ <#711#><#711#><tex2html_comment_mark>337
#5B<tex2html_comment_mark>338
@ <#712#>@ <#712#>@@ @
@@<#713#>0<#713#>@ @
@ @<#1059#><#715#>;SPMgt;<#715#><#1059#><tex2html_comment_mark>340
@ @ @<#716#><#716#><#717#>;SPMlt;<#717#><tex2html_comment_mark>341
@@##1##<#1060#>@<#718#>##1<#718#><#1060#><tex2html_comment_mark>342
@@ <#719#><#719#>@
@##1##<#1061#>@<#720#>##1<#720#><#1061#>@ <#721#><#721#><tex2html_comment_mark>343
#5/
@
@@ @@ @
@@<#723#>0<#723#>@ @
@##1##<#1062#>@<#724#>##1<#724#><#1062#>@@ <#725#><#725#><tex2html_comment_mark>345
@<#726#>@p<#726#>@@<#727#>@c<#727#>@@ @<#728#>@m<#728#><tex2html_comment_mark>347
#5t
@<#729#>@m2<#729#>@<#730#>@m1<#730#>@ @<#731#>@c<#731#>@@
@<#732#>#1<#732#>@ @<#733#>@@<#733#>@<#1063#>@<#734#><#734#><#735#>-<#735#><#1063#>
#5o
@<#736#>@m2<#736#>@<#737#><#737#><tex2html_comment_mark>348
<tex2html_comment_mark>349
@<#738#>#1<#738#>@ @=@@=#1@
@=@
@<#739#>@@<#739#><tex2html_comment_mark>350
@@ @@
@i<#740#>@<#740#>@@ @ @<#741#>@m2<#741#><tex2html_comment_mark>351
@<#1064#>@<#742#>@p<#742#>@@<#743#>@c<#743#>@@<#1064#><tex2html_comment_mark>352
@<#1120#>@@
@@ @ @
@i<#744#>#1@<#744#>@@ @
@<#745#>@m2<#745#>@<#746#>@p<#746#>@@<#747#>@c<#747#><tex2html_comment_mark>353
@ @<#1065#>@<#749#>;SPMquot;@m2;SPMquot;<#749#><#1065#><tex2html_comment_mark>355
@####1<#1066#>@<#750#>####1<#750#><#1066#>@<#1067#><tex2html_comment_mark>356
@<#751#>@ ;SPMquot;@m2;SPMquot;<#751#><#1067#><tex2html_comment_mark>357
@ <#1120#>
@
@<#752#>#1<#752#>@ #5o
mod@ @@<#1121#>@@ @@
#5t
@ @
@
@@@ @ @
@ @<#1070#>@<#756#><#756#><#757#>|<#757#><#1070#><tex2html_comment_mark>361
@####1####<#1071#>@<#758#>####1<#758#><#1071#><tex2html_comment_mark>362
@<#1072#>@@ <#759#><#759#><#1072#>
@ <#1121#>@<#760#><#760#>
@
@<#761#>#7<#761#>@ @<#762#><#762#>
@<#1073#><#763#><#763#><#1073#>@ @@<#764#><#764#>
@#4@<#765#><#765#>
@<#1074#>@@ @@
@@<#766#>.5<#766#>@ @
@@
@@ @<#767#>#1<#767#>@ @@@=#1@
#5t@;SPMlt;@ @ @
@ @
@;SPMlt;@ @ @
@ @
@i<#768#>#4@<#768#>@@
@<#769#>#7<#769#><#1074#><tex2html_comment_mark>364
@
@<#770#>#1<#770#>@
#5o
#5b<tex2html_comment_mark>366
@ <#771#>@ <#771#>@@ @
@@<#772#>0<#772#>@ @
@ @<#1075#><#774#>;SPMgt;<#774#><#1075#><tex2html_comment_mark>368
@ @ @<#775#><#775#><#776#>;SPMlt;<#776#><tex2html_comment_mark>369
@ @##1##<#1076#>@<#777#>##1<#777#><#1076#><tex2html_comment_mark>370
@@ <#778#><#778#>@
@##1##<#1077#>@<#779#>##1<#779#><#1077#>@ <#780#><#780#><tex2html_comment_mark>371
#5/
@<#781#>@<#781#>@@ @
@@<#782#>0<#782#>@ @
@ @<#1078#><#784#>;SPMgt;<#784#><#1078#><tex2html_comment_mark>373
@ @ @<#785#><#785#><#786#>;SPMlt;<#786#><tex2html_comment_mark>374
@@##1##<#1079#>@<#787#>##1<#787#><#1079#><tex2html_comment_mark>375
@@ <#788#><#788#>@
@##1##<#1080#>@<#789#>##1<#789#><#1080#>@@ <#790#><#790#><tex2html_comment_mark>376
#5@<tex2html_comment_mark>377
<tex2html_comment_mark>378
@@ @@ @
@@<#791#>1<#791#>@ @
@ @<#793#><#793#><#794#>;SPMgt;<#794#><tex2html_comment_mark>380
@##1##<#1081#>@<#795#>##1<#795#><#1081#>@@ <#796#><#796#><tex2html_comment_mark>381
#5B<tex2html_comment_mark>382
@ <#797#>@ <#797#>@@ @
@@<#798#>0<#798#>@ @
@ @<#1082#><#800#>;SPMgt;<#800#><#1082#><tex2html_comment_mark>384
@ @ @<#801#><#801#><#802#>;SPMlt;<#802#><tex2html_comment_mark>385
@@##1##<#1083#>@<#803#>##1<#803#><#1083#><tex2html_comment_mark>386
@@ <#804#><#804#>@
@##1##<#1084#>@<#805#>##1<#805#><#1084#>@@ <#806#><#806#><tex2html_comment_mark>387
@
@ <#808#>@ <#808#>@@ @
@@<#809#>0<#809#>@ @
@##1##<#1085#>@<#810#>##1<#810#><#1085#>@@ <#811#><#811#><tex2html_comment_mark>389
@<#812#>#1<#812#>@ @=@@=#1@
@;SPMlt;@ @<#813#>@m2<#813#>@@<#814#>@m1<#814#><tex2html_comment_mark>393
@<#815#>@m1<#815#>@@<#816#>@m2<#816#><tex2html_comment_mark>394
@@ @<#817#>@m<#817#><tex2html_comment_mark>395
@
@<#818#>_<#818#>@ @
@<#820#>@ @<#820#>@=#2@
@@ @i<#821#>@<#821#>@@
@ @<#822#>@m<#822#><tex2html_comment_mark>398
@##1##<#1086#>@<#823#>##1<#823#><#1086#>@@ <#824#><#824#><tex2html_comment_mark>399
@<#825#>^<#825#>@ @
@<#827#>_<#827#>@<#829#>@ @<#829#>@=#2@
@@ @i<#830#>@<#830#>@@
@ @<#831#>@m<#831#>@
@##1##<#1087#>@<#832#>##1<#832#><#1087#>@@ <#833#><#833#><tex2html_comment_mark>403
@<#834#>=<#834#>@ @
@<#836#>@ @<#836#><tex2html_comment_mark>406
@=#2@ @@
@@ @i<#837#>@<#837#>@@
@ @<#838#>@m2<#838#><tex2html_comment_mark>407
@<#839#>@m<#839#><tex2html_comment_mark>408
@<#840#>@ @<#840#><tex2html_comment_mark>409
@=#2@ @-@
@@ @i<#841#>@<#841#>@@
@ @<#842#>@m1<#842#><tex2html_comment_mark>410
@<#843#>@m2<#843#>@@<#844#>@m1<#844#>@<#845#>2<#845#><#846#>-<#846#><tex2html_comment_mark>411
@<#847#>#8<#847#>@ @<#848#><#848#>@<#1088#><tex2html_comment_mark>415
@
@@<#849#>.5<#849#><tex2html_comment_mark>416
@<#850#>=<#850#>@ @
@@<#852#>.5<#852#><tex2html_comment_mark>417
@<#853#>_<#853#>@ @
@<#855#>@m<#855#><tex2html_comment_mark>418
@@
@@ @@
@
@<#857#>=<#857#>@ @
@<#860#>_<#860#>@ @
@i<#864#>@ <#864#>@@ @
@<#865#>#8<#865#><tex2html_comment_mark>423
<#1088#>@
@ <#1126#><tex2html_comment_mark>424
)
<P>
These are used to establish the location for
the module-map indicator, giving best aesthetic appeal.
It finds the location whose parameter value is
the average of half-way along the complete curve and
the average of parameter values at the the edges.
<P>
(
@@<#1089#>@
@@@ <#1089#>
<P>
@@@#1;#2,#3;#4,<#1090#><tex2html_comment_mark>426
@=#2@-#4
@ 2@ @ by4
@ <#1090#><tex2html_comment_mark>427
)
<P>
2